package com.zzw.service.Impl;

import com.zzw.bean.Agent;
import com.zzw.bean.Store;
import com.zzw.dao.AgentMapper;
import com.zzw.dao.StoreMapper;
import com.zzw.service.AgentService;
import com.zzw.service.StoreService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.Date;
import java.util.List;

/**
 * @author 赵志伟
 * @version 1.0
 */
@SuppressWarnings({"all"})
@Service
@Slf4j
public class StoreServiceImpl implements StoreService {
    @Resource
    private StoreMapper storeMapper;

    @Override
    public List<Store> selectStoreList() {
        return storeMapper.selectStoreList();
    }

    @Override
    public Store selectStoreById(Integer id) {
        return storeMapper.selectStoreById(id);
    }

    @Override
    public int insertStore(Store store) {
        return storeMapper.insertStore(store);
    }

    @Override
    public int updateStoreStatus(Integer id) {
        return storeMapper.updateStoreStatus(id);
    }
}
